/**
 * 
 */
package net.wisos.opn.common.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import net.wisos.opn.account.entity.User;
import net.wisos.opn.entity.Gender;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * @author Liuye
 * 
 */
@SuppressWarnings("serial")
@Entity
@DiscriminatorValue("m")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Member extends User {
	/**
	 * 昵称
	 */
	private String nickName;
/**
 * 性别
 */
	private Gender gender;
	/**
	 * 通讯地址
	 */
	private Address address;

	/**
	 * @return the nickName
	 */
	@Column(length = 20, nullable = false)
	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName
	 *            the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return the gender
	 */
	public Gender getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(Gender gender) {
		this.gender = gender;
	}

	/**
	 * @return the address
	 */
	public Address getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(Address address) {
		this.address = address;
	}

}
